package com.demo.aop;

import java.io.Serializable;


public class MirrorAspect<K,T> {
	
	private MirrorDao<K,T> mirrorDao;
	
	public void setAuditService(MirrorDao<K,T> auditService) {
		this.mirrorDao = auditService;
	}
	public void grabarTablaEspejo(K entity) throws Throwable {
		mirrorDao.insertar(entity);
	}
	public void modificarTablaEspejo(K entity) throws Throwable {
		mirrorDao.modificar(entity);
	}
	public void eliminarTablaEspejo(K entity) throws Throwable {
		mirrorDao.eliminar(entity);
	}
}